const path = require('path')
const fpath = '/file/鸭子.txt'
const extName = path.extname(fpath)
console.log(extName);